package com.lyb.springbootredisclient.app.sattagy;

import org.springframework.stereotype.Service;

/**
 * @author: lyb  2023/5/9 14:49
 */
@Service
public class BankPayServiceImpl implements PayService {
    @Override
    public String pay() {
      return  "银行卡支付";
    }

    @Override
    public Object getClass(String pay) {
        return "BANK".equals(pay) ? this : "error";
    }
}
